package com.situ.hibernate.entity;

import java.util.HashSet;
import java.util.Set;

public class Banji {
	private Integer id;
	private String name;
	private Set<Student> students = new HashSet<>();
	//一個班級学习哪些课程
	private Set<Course> courses = new HashSet<>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Student> getStudents() {
		return students;
	}

	public void setStudents(Set<Student> students) {
		this.students = students;
	}

	public Set<Course> getCourses() {
		return courses;
	}

	public void setCourses(Set<Course> courses) {
		this.courses = courses;
	}

	@Override
	public String toString() {
		return "Banji [id=" + id + ", name=" + name + ", students=" + students + ", courses=" + courses + "]";
	}


}
